css: Replace _AFFECTS_TEXT with _TEXT_SIZE and _TEXT_CLIP
authorTimm Bäder <mail@baedert.org>
Thu, 12 Oct 2017 11:18:07 +0000 (13:18 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 12 Oct 2017 13:42:03 +0000 (15:42 +0200)
commit9bc7581f1c0a26180c3ef1e154cb54ccc6e6104c
tree4a18c0149163fa12f2e57c9bcbd818fd22c5ba26
parent30096de3417487ce3e9571ef5c3a50e510dd8dbb
css: Replace _AFFECTS_TEXT with _TEXT_SIZE and _TEXT_CLIP

It was used to mark css properties that affect widgets with text, but it
caused unnecessary invalidations. E.g. 'color' was marked as
AFFECTS_TEXT but changing just the color of a label should not
automatically queue a resize, which is what the code in
gtk_widget_real_style_updated does.

Replace this flag with GTK_CSS_AFFECTS_TEXT_SIZE and
GTK_CSS_AFFECTS_TEXT_CLIP, which GtkWidget can use only if the widget
actually has text.
gtk/gtkcssstylepropertyimpl.c
gtk/gtkcsstypesprivate.h
gtk/gtktextview.c
gtk/gtkwidget.c